#include "menu.h"

//2、显示所有联系人
void showPerson(Addressbooks *abs){
	if (abs->m_Size == 0){
		cout << "当前记录为空" << endl;
	}else{
		for (int i = 0; i < abs->m_Size; i++){
			cout << "姓名：" << abs->personArray[i].m_Name << "\t";
			cout << "性别：" << (abs->personArray[i].m_Sex == 1 ? "男" : "女") << "\t";
			cout << "年龄：" << abs->personArray[i].m_Age << "\t";
			cout << "电话：" << abs->personArray[i].m_Phone << "\t";
			cout << "住址：" << abs->personArray[i].m_Addr << endl;
		}
	}
	
	system("pause");
	system("cls");
}